<%@ page language="java" pageEncoding="UTF-8"%>
<div class="modal fade bs-example-modal-lg"  aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div id="allmap" style="width: 900px;height: 550px;font-family:'微软雅黑';font-size:14px;"></div>

</div>
</div>
</div>
<script type="text/javascript">
	//百度地图API功能
	var map;
	function loadJScript() {
		var script = document.createElement("script");
		script.type = "text/javascript";
		script.src = "http://api.map.baidu.com/api?v=2.0&ak=qzAAxn8ifTRDGP2Wl8AoHGDj&callback=init";
		document.body.appendChild(script);
	}
	function init() {
		map = new BMap.Map("allmap");            // 创建Map实例
		var point = new BMap.Point(105.901507,29.353885); // 创建点坐标
		map.centerAndZoom(point,17);
		map.panBy(450,270);
		map.enableScrollWheelZoom(true);
		
		var marker = new BMap.Marker(point);  // 创建标注
		map.addOverlay(marker);               // 将标注添加到地图中
		marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
		
	}  
	window.onload = loadJScript;  //异步加载地图
	function station(s) {
		ss = s.split(",");
		var point = new BMap.Point(ss[0],ss[1]); // 创建点坐标
		map.centerAndZoom(point,17);
		map.panBy(450,270);
		map.clearOverlays();  
		var marker = new BMap.Marker(point);  // 创建标注
		map.addOverlay(marker);               // 将标注添加到地图中
		marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画
	}
	
</script>
